package com.ttg.common.enums;

/**
 * Description： 维度类型
 * Author: chenyou
 * Date: 2025/8/18 15:47
 * Company: ttg
 * Copyright: Copyright (c) 2025
 */
public enum DimTypeEnum {

    商户维度(0,"商户维度"),

    行业维度(1,"行业维度")
    ;

    DimTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    public static DimTypeEnum getByVal(int value){
        for(DimTypeEnum curr:DimTypeEnum.values()){
            if(curr.value==value){
                return curr;
            }
        }
        return null;
    }
}
